DESANTI = { };
( function ( D ) {
    D.request = { };

    window.onload = function( )
    {
        D.request( "labelEachPrimitiveCollection.txt", { }, 
            function( results )
            {
                for( var i = 0 ; i < results.length ; i += 1 )
                {
                    D.request( "labelEachPrimitiveCollection2.txt",
                        {
                            "id": results[ i ].id.value,
                            "label": results[ i ].id.value.replace( /^.*collections\//, "" )
                        }, 
                        ( function( )
                        {
                            var j = i;
                            return function( )
                            {
                                document.getElementById( "holder" ).innerHTML = results[ j ].id.value + " done.";
                            }
                        } )( ), true );
                }
            } );
    }

} ) ( DESANTI );
